home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nautilus 1992 July
/
Nautilus-3-8
/
Nautilus-3-8.bin
/
Tools & Utilities
/
Techy Stuff
/
Development Environments ƒ
/
Perl 4.0.2 ƒ
/
os2
/
mktemp.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-01-04
|
412 b
|
29 lines
/* MKTEMP.C using TMP environment variable */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <io.h>
void Mktemp(char *file)
{
char fname[32], *tmp;
tmp = getenv("TMP");
if ( tmp != NULL )
{
strcpy(fname, file);
strcpy(file, tmp);
if ( file[strlen(file) - 1] != '\\' )
strcat(file, "\\");
strcat(file, fname);
}
mktemp(file);
}
/* End of MKTEMP.C */